import userInfoMedalModel from '../user/userInfoMedalModel';
import userInfoWearTitleModel from '../user/userInfoWearTitleModel';

export default class liveUserInfoModel {
  uname: string;
  face: string;
  silver: number;
  gold: number;
  vip: number;
  medal: userInfoMedalModel;
  svip: number;
  svip_time: string;
  vip_time: string;
  wearTitle: userInfoWearTitleModel;
  isSign: number;
  user_level: number;
  user_level_color: string;
  room_id: number;
  use_count: number;
  vip_view_status: number;

  get vipInfo() {
    return this.vip == 1 ? this.exTime : "你还不是老爷哦";
  }

  get exTime() {
    if (this.svip != 0)
      return "年费老爷 到期时间" + this.svip_time;
    else if (this.vip != 0)
      return "月费老爷 到期时间" + this.vip_time;
    return '';
  }
}